//
//  Api.h
//  TaurusXi
//
//  Created by xicheng on 15/12/8.
//  Copyright © 2015年 xicheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetworkTask.h"

@interface Api : NSObject

@property (nonatomic,copy) NSString *codeUUID;

+(instancetype)shareApiInstance;

- (void) testWithParams:(NSDictionary *)params AndResponce:(PassValueBlock)successBlock AndError:(PassErrorBlock)errorBlock;

- (NSString *)getCodeStatusPath;

- (NSString *)getcodeUUID;


-(void) registerFirstWithPhoneNumb:(NSString *)phoneNumb AndCode:(NSString *)code AndCodeUUID:(NSString *)codeUUID AndResponce:(PassValueBlock)successBlock AndError:(PassErrorBlock)errorBlock;

//username: 用户名
//smsCode: 短信校验码
//inviteNo:邀请码
//popularizeNo:渠道推广码
//smsId: 短信id


-(void) registerSecondWithPhoneNumb:(NSString *)phoneNumb AndSMSCode:(NSString *)smsCode AndInviteNo:(NSString *)inviteNo AndPopularizeNo:(NSString *)popularizeNo AndSmsId:(NSString *)smsId AndResponce:(PassValueBlock)successBlock AndError:(PassErrorBlock)errorBlock;


-(void) loginWith:(NSString *)phoneNumb AndPassword:(NSString *)password AndResponce:(PassValueBlock)successBlock AndError:(PassErrorBlock)errorBlock;

-(void) getIndexDataWithResponce:(PassValueBlock)successBlock AndError:(PassErrorBlock)errorBlock;


-(void) getStarDataWithResponce:(PassValueBlock)successBlock AndError:(PassErrorBlock)errorBlock;


-(void) gotoHtmlWith:(NSString *)key AndResponce:(PassValueBlock)successBlock AndError:(PassErrorBlock)errorBlock;

-(NSString *)getHtmlUrlWith:(NSString *)key;
@end
